package top.lingchen.blogapi.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.util.List;

/**
 * @Author 凌宸
 * @create 2021-12-15 下午 9:27
 * @Description
 * @Version 1.0
 */
@Data
public class ArticleVo {
//    @JsonSerialize(using= ToStringSerializer.class)
    private String id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    private Integer weight;
    /**
     * 创建时间
     */
    private String createDate;

    private String author;

    private ArticleBodyVo body;

    private List<TagVo> tags;

//    private List<CategoryVo> categories;
    private CategoryVo category;
}
